import pandas as pd
from flask import Flask, render_template

df = pd.read_csv('data/房源数量占比.csv')
province = df['省份'].tolist()
rank = df['房源数量分布占比'].tolist()

app = Flask(__name__)


@app.route("/")
def index():
    return render_template('各省份房源数量占比散点图.html', province=province, rank=rank)


if __name__ == '__main__':
    app.run(debug=True)
